package cn.edu.hatu.bookshop.service;

import cn.edu.hatu.bookshop.dao.AdminMapper;
import cn.edu.hatu.bookshop.entity.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminService {
    private AdminMapper adminMapper;
    @Autowired
    public void setAdminMapper(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }
    public Admin getAdmin(){
        Admin admin = adminMapper.getAdmin();
        return admin;
    }
}
